package cc.rengu.redp.bizimpl.upmp.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import com.wuwenze.poi.validator.EmailValidator;
import lombok.Data;

import java.util.Date;

@Data
@Excel("终端型号管理导入导出数据")
public class BTermModelInfoVO {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("INST_ID")
    private String instId;

    @TableField("MODEL_CODE")
    private String modelCode;

    @TableField("MODEL_NAME")
    @ExcelField(value = "终端型号名称", required = true, maxLength = 16,
            comment = "提示：必填，长度不能超过16个字符")
    private String modelName;

    @TableField("MODEL_DESC")
    @ExcelField(value = "终端型号描述", maxLength = 32,
            comment = "提示：必填，长度不能超过32个字符")
    private String modelDesc;

    @TableField("BRAND_CODE")
    private String brandCode;

    @TableField("CONTACT_NAME")
    @ExcelField(value = "联系人姓名", required = true, maxLength = 32,
            comment = "提示：必填，长度不能超过32个字符")
    private String contactName;

    @TableField("CONTACT_PHONE")
    @ExcelField(value = "联系人电话", required = true, maxLength = 11, regularExp = "[0-9]+",
            regularExpMessage = "必须是数字", comment = "提示: 必填，只能填写数字，并且长度不能超过11位")
    private String contactPhone;

    @TableField("CONTACT_EMAIL")
    @ExcelField(value = "联系人邮箱", maxLength = 32,
            comment = "提示：必填，只能填写邮箱，长度不能超过32个字符", validator = EmailValidator.class)
    private String contactEmail;

    @TableField("AUDIT_REFUSE_REASON")
    private String auditRefuseReason;

    @TableField("STATUS")
    private String status;

    @TableField("AUDIT_STATUS")
    private String auditStatus;

    @TableField("CRT_ORG_ID")
    private String crtOrgId;

    @TableField("OPR_ID")
    private String oprId;

    @TableField("CREATE_TIME")
    private String createTime;

    @TableField("LAST_OPR_ID")
    private String lastOprId;

    @TableField("LAST_UPDATE_TIME")
    private String lastUpdateTime;

    @TableField("LAST_AUDIT_ID")
    private String lastAuditId;

    @TableField("LAST_AUDIT_TIME")
    private String lastAuditTime;

    private Date creatTime;

    private String flag;
    private String opt;

}
